using System.Xml.Linq;

namespace DeclarativeTest.Core
{
	/// <summary>
	/// Used for non standard loading(saving) from(to) xml
	/// </summary>
	public interface ICustomSerializer
	{
		/// <summary>
		/// Loads action data from xml element
		/// </summary>
		/// <param name="actionElement">Element to load action data</param>
		void DeserializeFrom( XElement actionElement );

		/// <summary>
		/// Saves action data to action xml element
		/// </summary>
		/// <param name="actionElement">Element to save action data</param>
		void SerializeTo( XElement actionElement );
	}
}